<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('landing_page', function (Blueprint $table) {
            $table->id();
            $table->string('page_no', 50)->default('')->comment('落地页编号');
            $table->integer('admin_id')->default(0)->comment('管理员ID');
            $table->string('title', 50)->default('')->comment('标题');
            $table->string('header_img_url')->default('')->comment('头图素材');
            $table->text('content')->nullable()->comment('文案内容');
            $table->string('footer_img_url')->default('')->comment('底图素材');
            $table->string('button_content', 100)->default('')->comment('按钮内容');
            $table->string('button_jump_link')->default('')->comment('按钮跳转链接');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('landing_page');
    }
};
